var clip = new ZeroClipboard(document.getElementById("copy_qm"), {
	moviePath : "img/ZeroClipboard.swf"
});
clip.on('load', function(client) {
	clip.setText($("#app-download-url").val());
});

clip.on('complete', function(client, args) {
	// this.style.display = 'none'; // "this" is the element that was clicked
	console.log("Copied text to clipboard: " + args.text );
});

clip.on('mouseover', function(client) {
	// alert("mouse over");
});

clip.on('mouseout', function(client) {
	// alert("mouse out");
});

clip.on('mousedown', function(client) {
	clip.setText($("#app-download-url").val());
	// alert("mouse down");
});

clip.on('mouseup', function(client) {
	// alert("mouse up");
});